# name1 = "小明"
# result1 = "你好，我叫%s."%name1
# print(result1)

# name = "小明"
# age = 12
# result = "你好，我叫%s,今年我%d岁啦。"%(name,age)
# print(result)

# str_one = "乘风破浪会有时，"
# str_two = "哥很帅你记住。"
# restlt1 = str_one + str_two
# print(restlt1)
# word = "日月之行，若出其中；星汉灿烂，若出其里"
# result_one = word.replace(";",".")
# print(result_one)
# result_two = word.replace(";",".",1)
# print(result_two)
# word = "1 2 3 4 5"
# result_one = word.split()
# print(result_one)
# word = "a,b,c,d,e"
# result_two = word.split(",")
# print(result_two)
# result_thr = word.split(",",3)
# print(result_thr)

# word = "  勤而行之   "
# result = word.strip()
# print(result)

# str_python = "python"
# str_python =[0]
# str_python = [-6]

str_python = "python"
result_one = str_python[0:4]
print(result_one)
result_two = str_python[0:4:2]
print(result_two)